from django.urls import converters

class Username:
    regex = '[a-zA-Z0-9_-]{5,20}'

    def to_python(self, value):
        return value

class Mobile:
    regex = '1[3-9]\d{9}'

    def to_python(self, value):
        return value

class Uuid:
    regex = '[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}'

    def to_python(self, value):
        return value